package java07;
import java.util.Scanner;

/*你的代码，即Account类的代码*/

/*系统已有代码，无需关注*/

public class Main044 {

}
class Account{
	private int balance;
	
	
	public Account(int balance) {
		this.balance = balance;
	}
	public int getBalance() {
		return balance;
	}
	synchronized void  deposit(int money){
		this.balance  = this.balance + money;
	}
	
	synchronized void  withdraw(int money){
		this.balance  = this.balance - money;
	}
}

